﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlatformNetCore.OAuth2.Models
{
    [Table("User")]
    public class User
    {
        [Key]
        [MaxLength(50)]
        public string UserId { get; set; }

        [MaxLength(50)]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [MaxLength(200)]
        public string Password { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [MaxLength(50)]
        public string RoleId { get; set; }

        /// <summary>
        /// 客户端ID
        /// </summary>
        [MaxLength(200)]
        public string ClientId { get; set; }

        /// <summary>
        /// 状态：0：禁用，1：启用
        /// </summary>
        public int IsAvailable { get; set; }

        /// <summary>
        /// 是否删除 0:未删除，1：已删除
        /// </summary>
        public int IsDel { get; set; }

    }
}
